package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.*;

import java.util.List;
import java.util.Map;
import java.util.TreeSet;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    //查询用户

    List<Employee> selectAllList(EmployeeVo vo);
    //单一删除用户
    void deleteUser(Integer id);

    List<Position> selectPosition();

    List<Joblevel> selectJobLevels();

    List<Nation> selectNation();

    List<PoliticsStatus> selectPoliticsStatus();

    List<Department> selectDepartment();


    List<Employee> selectWorkId();

    /**
     * 更新员工信息
     * @param employee
     * @return
     */
    Integer updateEmployee(Employee employee);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    int insertEmployee(Employee employee);

    /**
     * 根据Id查询员工信息
     * @param id
     * @return
     */
    Employee selectEmployeeById(Integer id);

    /**
     * 获取所有的员工数据
     * @return
     */
    List<Employee> selectAllEmployee();
}
